//
//  UIBarButtonItem+Extension.swift
//  Weibo
//
//  Created by wade on 17/2/20.
//  Copyright © 2017年 wade. All rights reserved.
//

import UIKit

extension UIBarButtonItem{

    
    
    
    convenience init(title:String,fontSize:CGFloat = 16,target:Any,action:Selector) {
        
        let btn : UIButton = UIButton.cz_textButton(title, fontSize: fontSize, normalColor: UIColor.darkGray, highlightedColor: UIColor.orange)
        
        btn.addTarget(target, action: action, for: .touchUpInside)
        
        self.init(customView:btn)
        
    }

}
